#!/bin/bash
fiften=$(uptime | awk -F '[:,]+' '{print $NF}' | tr -d ' ')
five=$(uptime | awk -F '[:,]+' '{print $(NF-1)}' | tr -d ' ')
one=$(uptime | awk -F '[:,]+' '{print $(NF-2)}' | tr -d ' ')
echo "{\"fiften\":$fiften,\"five\":$five,\"one\":$one}"

